
layui.define(['laytpl','jquery'], function(exports) {
    var $ = layui.jquery;
    var laytpl=layui.laytpl;
    
    var navtab = {
        getNav: function(curl) {
            var that = this;

            var getTpl = demo.innerHTML
                ,view = document.getElementById('zyl-nav');
            
            $.getJSON(curl, function(res) {
                laytpl(getTpl).render(res, function(html){
                    view.innerHTML = html;
                });
            });
        }
    };
    exports('navtab', navtab);
});